package com.rpc.demo;

import com.rpc.demo.myservice.HelloService;
import com.rpc.demo.pojo.Invocation;

public class CustomerMain {
	public static void main(String[] args) {
		Invocation invocation =new Invocation(HelloService.class.getName(),"sayHello",new String[]{"chenxxx"},new Class[]{String.class});
		HttpClient httpClient = new HttpClient();
		String localhost = httpClient.post("localhost", 8080, invocation);
		System.out.println(localhost);
	}
}
